<template>
  <van-config-provider theme="dark">
    <!-- 路由出口 -->
    <!-- 路由匹配到的组件将渲染在这里 -->
    <router-view v-slot="{ Component }">
      <!--它会根据组件的 name 选项进行匹配，所以组件如果想要条件性地被 KeepAlive 缓存，就必须显式声明一个 name 选项。-->
      <keep-alive :exclude="store.excludeNames">
        <component :is="Component" />
      </keep-alive>

      <!-- <keep-alive :include="['home']">
        <component :is="Component" />
      </keep-alive>-->
    </router-view>
  </van-config-provider>
</template>

<script setup lang="ts">
import { useAppStoreHook } from "@/store/modules/app.ts";

const store = useAppStoreHook();
</script>

<style lang="less">
</style>